<div class="container" style="min-height: 206px;">   
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>Information</div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>
        <div class="selectedcustomer" style="text-align:center;">
            <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$customer->custno?>"><?php echo $customer->firstname.' '.$customer->lastname?></a></span>

        </div>


   </div>
    
    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>            
            
            <?php if($action=='index'):?>
            <li><a href="javascript:void(0)" id="createJob" class="add-button" onclick="">Add Job</a></li>
            <?php elseif($action=='update'):?>
            <script>
                function saveJob(){
                    $.ajax({
                        url:'index.php?r=salespersonportal/jobs/update&jobid='+jobid,
                        timeOut:200,
                        type:'post',
                        data:$('#jobs-form').serialize(),
                        success:function(rs){
                            if(rs==true){
                                $.ajax({
                                    url:'index.php?r=salespersonportal/jobsnotes/saveBatch',
                                    type:'post',
                                    data:{
                                        jobid:jobid,
                                        data:noteArray
                                    },
                                    success:function(){
                                        window.location='index.php?r=salespersonportal/jobs&custno=<?=$job->custno?>&locno=<?=$job->locno?>';
                                    }
                                })
                                
                            }
                                
                        }
                    });

                    return false;
                }
            </script>
            <li><a href="javascript:void(0)" id="save-job" onclick="saveJob();">Save Job</a></li>
            <li><a href="index.php?r=salespersonportal/jobs/cancel&jobid=<?=$job->jobid?>">Cancel</a></li>
            <a href='index.php?r=salespersonportal/invoices/createQuote&jobnumber=<?= $job->jobid ?>' class='add-button' id='createQuote'>Add Quote</a>
            <?php endif?>
                    
        </ul>
        <div id="dialog"></div>
    </div>
    
    
    

</div>